<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增公司')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-company-add">
			<input type="hidden" name="projectId" id="projectId" th:value="${projectId}"/>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">项目名称：</label>
                    <div class="col-sm-8 control-label" style="text-align:left">[[${projects.name}]]</div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">公司名称：</label>
                    <div class="col-sm-8">
                        <input name="companyName" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">公司网址：</label>
                    <div class="col-sm-8">
                        <input name="companyUrl" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">所属商家：</label>
                    <div class="col-sm-8">
                        <input name="merchantName" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">账号：</label>
                    <div class="col-sm-8">
                        <input name="account" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">筹码预估价：</label>
                    <div class="col-sm-8">
                        <input name="estimPrice" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">筹码价格：</label>
                    <div class="col-sm-8">
                        <input name="actualPrice" class="form-control" type="text">
                    </div>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "project/company"
        $("#form-company-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
			var data = $('#form-company-add').serialize();
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", data);
            }
        }
    </script>
</body>
</html>